package test.my.com.myapplicationtest.retrofit_net;

import java.io.Serializable;

/**
 * Author : Cooper
 * Time : 2017/8/24  15:04
 * Description : 接口返回实体类
 */

public class ResponseEntity<T> implements Serializable {


    private String jsonrpc;
    private ErrorBean error;
    private ResultBean<T> result;
    private int id;

    public String getJsonrpc() {
        return jsonrpc;
    }

    public void setJsonrpc(String jsonrpc) {
        this.jsonrpc = jsonrpc;
    }

    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public ResultBean<T> getResult() {
        return result;
    }

    public void setResult(ResultBean<T> result) {
        this.result = result;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static class ErrorBean implements Serializable {

        private int code;
        private String message;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }


}
